package com.android.kotlincoroutinemvvmdemo
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.widget.Toast

inline fun <reified T : Activity> Context?.startActivity() {
    this?.startActivity(Intent(this, T::class.java))
}

fun Context.showToast(content: String) = Toast.makeText(this,content, Toast.LENGTH_SHORT).show()